package cn.hsa.fqz.monitor.dao;

import cn.hsa.fqz.monitor.entity.TMonitorEntityDimensionProperties;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TMonitorEntityDimensionPropertiesMapper {
    int deleteByPrimaryKey(Integer id);

    int deleteByEntityDimensionId(@Param("id") Integer entityDimensionId);

    int insert(TMonitorEntityDimensionProperties record);

    int insertSelective(TMonitorEntityDimensionProperties record);

    TMonitorEntityDimensionProperties selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TMonitorEntityDimensionProperties record);

    int updateByPrimaryKey(TMonitorEntityDimensionProperties record);

    List<TMonitorEntityDimensionProperties> getEntityPropertiesByTableNameAndCategory(@Param("tableName") String tableName,@Param("category")String category);

    List<TMonitorEntityDimensionProperties> getEntityPropertiesByEntityDimensionId(@Param("entityDimensionId") Integer entityDimensionId);

    List<String> selectPropCodesByTableNameAndCodes(@Param("tableName") String tableName, @Param("codes") List<String> codes);

    String selectAdmdvsPropCodesByTableName(@Param("tableName") String tableName);

    String selectDefaultPropByTableName(@Param("tableName")String tableName);

    List<TMonitorEntityDimensionProperties> selectEntityDimensionPropertiesByEntityCodeAndTableName(@Param("entityCode") String entityCode, @Param("tableName") String tableName);
}
